//1.导入http模块
const http = require('http')
//创建http服务
const server = http.createServer(function(req, res) {
	console.log("有请求来了");
	res.end("<h1>abc</h1>");
})

// console.log(module);
console.log(http);
/*
  设置监听
  1.端口号
  2.回调函数
*/
server.listen(8082, () => console.log("server running at 8082 端口"))
console.log(server);
